import request from "@/utils/request";

export const getPostList = params => {
    return request({
      url: '/sys/post/list', 
      params
    })
} 

export const addPost = data => {
    return request({
      url: '/sys/post/add', 
      method: 'POST',
      data
    })
} 
  
export const getPostDeail = params => {
    return request({
      url: '/sys/post/detail', 
      params
    })
} 

export const editPost = data => {
    return request({
      url: '/sys/post/edit', 
      method: 'POST',
      data
    })
} 

export const deletePost = data => {
    return request({
      url: '/sys/post/delete', 
      method: 'POST',
      data
    })
} 